package com.holly.unit.gen.modular.service.impl;

import com.holly.unit.db.api.pojo.druid.DruidProperties;
import com.holly.unit.gen.api.GenerateCodeApi;
import com.holly.unit.gen.api.pojo.TableInfo;
import com.holly.unit.gen.modular.service.GenCodeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * 类描述: 业务实现类
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/1/15 15:22
 */
@Service
@Slf4j
public class GenCodeServiceImpl implements GenCodeService {

    @Resource
    private GenerateCodeApi api;

    @Resource
    private DruidProperties druidProperties;

    @Override
    public List<String> generate(TableInfo info, String customerPath) throws Exception{
        return api.autoGen(info,customerPath);
    }

}
